package com.sys.platform.entity.vo.dossierDeviceWarning;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.OrderBy;
import java.util.Date;

/**
 * 档案馆设备告警对象 dossier_device_warning
 *
 * @author yuanfuqiang
 * @date 2024-01-10
 */
@Data
public class DossierDeviceWarningVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("设备id")
    private String deviceId;

    @ApiModelProperty("类型 1：人员入侵 2：温湿度 3: 漏水检测  4: 智能开关")
    private Integer type;

    @ApiModelProperty("数据值")
    private String data;

    @ApiModelProperty("0 待处理 1已完结")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("完成时间")
    private Date completeTime;

    @ApiModelProperty("告警状态")
    private Integer warningStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    @OrderBy("desc")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

}
